<?php if($_GET['iid']>0 && $click_url!=''){?>
<div id="splistbox_iid" class="splistbox0" style="clear:both; ">
<ul>
            <li style="border-bottom:4px solid #ddd; background:url(template/<?=MOBAN?>/images/curgood.gif) no-repeat right top;">
            <?php
			if($click_url){
			    $go_taobao="href=\"gotoitem.php?url=".base64_encode($click_url)."\" target=\"_blank\" layer=\"goods\" index='0' class=\"checkLogin_iid\"";
			}
			else{
			    $go_taobao='';
			}
			
			$go_view="href=\"view".$url_head_iid.encode_url($iid).$url_end."\" target=\"_blank\"";
			//简易模式还是详细模式选择不同的链接地址
			if(WEBTYPE=='0'){
				if($click_url){
				    $gourl="href=\"gotoitem.php?url=".base64_encode($click_url)."\" target=\"_blank\"  layer=\"goods\" index='0' class=\"checkLogin_iid\"";
				}
				else{
				    $gourl="";
				}
			}else{
				$gourl="href=\"view".$url_head_iid.encode_url($iid).$url_end."\" target=\"_blank\"";
			}
			?>
			<div class="pic"><a <?=$gourl?> pic="<?=base64_encode($pic_path.'_310x310.jpg')?>"><SCRIPT language=javascript>setPic('<?=base64_encode($pic_path)?>',100,100,'');</SCRIPT></a></div>
					<div class="title"><h2><a <?=$gourl?>><?=$title?></a></h2>
					<p>共有商品 <?=$num?> 件 &nbsp;&nbsp;&nbsp;&nbsp; <?php if($shoptype=="B"){echo " <img src=\"template/".MOBAN."/images/shangcheng.png\" alt=\"商城卖家\">";}else {echo " <img src=\"images/level_".$shoplevel.".gif\" align=\"absmiddle\" />";} ?><br>
                    <font color="#999999">卖家：</font><A  href="shop.php?nick=<?=urlencode($sellernick)?>" target=_blank title="逛逛<?=$sellernick?>的店铺"><?=$sellernick?></a> <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid=<?=urlencode($sellernick)?>&site=cntaobao&s=2&charset=utf-8" ><SCRIPT language=javascript>setPic('<?=base64_encode("http://amos.im.alisoft.com/online.aw?v=2&uid=".urlencode($sellernick)."&site=cntaobao&s=1&charset=utf-8")?>','','','点击这里给我发消息');</SCRIPT></a><?php if(TAOPJOPEN==1){?>&nbsp;&nbsp; (<a url="userNumId=<?=$user_id?>&auctionNumId=<?=$iid?>" goto="gotoitem.php?url=<?=base64_encode($click_url)?>" style="color:#06F; text-decoration:underline" class="seepj" href="javascript:;">查看评价</a>) <?php }?></p>
					</div>
					<div class="rightdetail">
						<div style="width:310px; height:20px; overflow:hidden">
							<div class="jiage">淘宝价：<b><?=$price?></b> 元</div>
							<div class="city"><?=$state?> <?=$city?></div>
							<div class="baozhang"><a style="color:#666" <?=$go_view?>>详情</a></div>
						</div>
						<div class="fanmi">
							<div style=" width:120px; float:right; margin-top:20px; margin-right:20px; margin-left:10px; text-align:right"><a href="list.php?q=<?=urlencode($q)?>"><img src="template/<?=MOBAN?>/images/bibi.gif" alt="比比价格" /></a><br><br><a <?=$go_taobao?>>马上去淘宝购买</a></div>
							<div class="jiage">可返现： <b><?=$fxje?></b> 元</div> 
						</div>
				  </div>
				</li>
                <li style=" background:#EBEBEB; height:20px; line-height:20px; padding-left:5px; width:735px; color:#000; font-weight:bold">还找到相同宝贝：<?=count($TaobaokeItem)?>件</li>
</ul>
</div>
<?php }?>
<?PHP if ($TotalResults==0){?>
            <?php include('template/'.MOBAN.'/tuijian.tpl.php');?>
            <?php }?>
		<div id="splistbox" class="splistbox0" style="clear:both; ">
			
			<ul>
				<?php for($i = 0; $i < count($TaobaokeItem); $i++) {
					if($TaobaokeItem[$i]["click_url"]){
					    $go_taobao="href=\"gotoitem.php?url=".base64_encode($TaobaokeItem[$i]["click_url"])."\" target=\"_blank\" index=".$i." layer=\"goods\" class=\"checkLogin\"";
					}
					else{
					    $go_taobao="";
					}
					$go_view="href=\"view".$url_head_iid.$TaobaokeItem[$i]["num_iid"].$url_end."\" target=\"_blank\"";
					//简易模式还是详细模式选择不同的链接地址
					if(WEBTYPE=='0'){
						if($TaobaokeItem[$i]["click_url"]){
						    $gourl="href=\"gotoitem.php?url=".base64_encode($TaobaokeItem[$i]["click_url"])."\" target=\"_blank\" index=".$i." layer=\"goods\" class=\"taopic checkLogin\"";
						}
						else{
						    $gourl="";
						}
						
					}else{
						$gourl="href=\"view".$url_head_iid.encode_url($TaobaokeItem[$i]["num_iid"]).$url_end."\" target=\"_blank\" class=\"taopic\"";
					}
				?>
				<li>
					<div class="pic"><a <?=$gourl?> pic="<?=base64_encode($TaobaokeItem[$i]["pic_url"]."_310x310.jpg")?>"><SCRIPT language=javascript>setPic('<?php echo base64_encode($TaobaokeItem[$i]["pic_url"]."_310x310.jpg")?>',100,100,'');</SCRIPT></a></div>
					<div class="title"><h2><a <?=$gourl?>><?php echo $TaobaokeItem[$i]["title"] ?></a></h2>
					<p>本期已售出 <?php echo $TaobaokeItem[$i]["commission_num"] ?> 件 &nbsp;&nbsp;&nbsp;&nbsp;<?php if($Result_users[$i]["type"]=="B"){echo " <img src=\"template/".MOBAN."/images/shangcheng.png\" alt=\"商城卖家\">";}else {echo " <img src=\"images/level_".$Result_users[$i]["seller_credit"]["level"].".gif\" align=\"absmiddle\" />";} ?><br>
                    <font color="#999999">卖家：</font><A  href="shop<?=$url_head_nick?><?=urlencode($Result_users[$i]["nick"])?><?=$url_end?>" target=_blank title="逛逛<?php echo $Result_users[$i]["nick"];?>的店铺"><?php echo $Result_users[$i]["nick"];?></a> <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid=<?=urlencode($Result_users[$i]["nick"])?>&site=cntaobao&s=2&charset=utf-8" ><SCRIPT language=javascript>setPic('<?=base64_encode("http://amos.im.alisoft.com/online.aw?v=2&uid=".urlencode($Result_users[$i]["nick"])."&site=cntaobao&s=1&charset=utf-8")?>','','','点击这里给我发消息');</SCRIPT></a><?php if(TAOPJOPEN==1){?>&nbsp;&nbsp; (<a url="userNumId=<?=$TaobaokeItem[$i]["user_id"]?>&auctionNumId=<?=$TaobaokeItem[$i]["num_iid"]?>" goto="gotoitem.php?url=<?=base64_encode($TaobaokeItem[$i]["click_url"])?>" style="color:#06F; text-decoration:underline" class="seepj" href="javascript:;">查看评价</a>) <?php }?></p>
					</div>
					<div class="rightdetail">
						<div style="width:310px; height:20px; overflow:hidden">
							<div class="jiage">淘宝价：<b><?php echo $TaobaokeItem[$i]["price"] ?></b> 元</div>
							<div class="city"><?=$Result_users[$i]["location"]["state"]?> <?=$Result_users[$i]["location"]["city"]?></div>
							<div class="baozhang"><a style="color:#666" <?=$go_view?>>详情</a></div>
						</div>
						<div class="fanmi">
							<div style=" width:120px; float:right; margin-top:20px; margin-right:20px; margin-left:10px; text-align:right"><a href="list.php?q=<?php echo urlencode(strip_tags($TaobaokeItem[$i]["title"]))?>"><img src="template/<?=MOBAN?>/images/bibi.gif" alt="比比价格" /></a><br><br><a <?=$go_taobao?>>马上去淘宝购买</a></div>
							<div class="jiage">可返现： <b><?php echo ck_fxje($TaobaokeItem[$i]["commission"],$_SESSION['dduserlevel']) ?></b> 元</div> 
						</div>
				  </div>
				</li>
				<?php }?>
			</ul>
		</div>	